package com.iota.controller;

import com.iota.entity.User;
import com.iota.service.UserService;
import com.iota.service.impl.UserServiceImpl;
import lombok.extern.slf4j.Slf4j;
import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.PathVariable;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.servlet.ModelAndView;

import javax.annotation.Resource;

/**
 * @author xk_ya
 */
@Controller
@RequestMapping(value = "/user/")
public class UserController {

    @Resource(type = UserServiceImpl.class)
    private UserService userService;

    @RequestMapping(value = "{id}/showUser")
    public ModelAndView findUserById(@PathVariable int id) {
        ModelAndView view = new ModelAndView("showUser");
        return view;
    }
}
